/**
 * 
 */
package com.gmail.blackdog1987.carcare.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.gmail.blackdog1987.carcare.BaseActivity;
import com.gmail.blackdog1987.carcare.R;

public class RoadHelpTypeActivity extends BaseActivity implements
		OnClickListener {
	private Context mContext;
	private Intent mIntent;

	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_roadhelp_type);
		mContext = this;
		mIntent = new Intent(this, OrderRoadHelpActivity.class);
		initViews();
		initData(savedInstanceState);
		reg();
	}

	public void initViews() {
	}

	public void reg() {
		findViewById(R.id.roadhelp_type_luntai).setOnClickListener(this);
		findViewById(R.id.roadhelp_type_qiyou).setOnClickListener(this);
		findViewById(R.id.roadhelp_type_daijia).setOnClickListener(this);
		findViewById(R.id.roadhelp_type_dianping).setOnClickListener(this);
	}

	public void initData(Bundle savedInstanceState) {

	}

	@Override
	public void onClick(View v) {

		switch (v.getId()) {
		case R.id.roadhelp_type_luntai:
			mIntent.putExtra("type", 1);
			startActivity(mIntent);
			break;
		case R.id.roadhelp_type_qiyou:
			mIntent.putExtra("type", 3);
			startActivity(mIntent);
			break;
		case R.id.roadhelp_type_daijia:
			mIntent.putExtra("type", 4);
			startActivity(mIntent);
			break;
		case R.id.roadhelp_type_dianping:
			mIntent.putExtra("type", 2);
			startActivity(mIntent);
			break;
		default:
			break;
		}

	}
}
